-- GENERATED SPELL FOR [Silver Covenant Scout] --


function spell0_30238(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30238', 3256, 1)
end

function spell1_30238(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30238', 585, 1)
end

function spell2_30238(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30238', 583, 1)
end

function Sorts_30238(pUnit, Event)
local choix_sorts_30238 = math.random(0, 2)
if choix_sorts_30238 == 0 then
pUnit:RegisterEvent('spell0_30238', 1, 1)
end
if choix_sorts_30238 == 1 then
pUnit:RegisterEvent('spell1_30238', 1, 1)
end
if choix_sorts_30238 == 2 then
pUnit:RegisterEvent('spell2_30238', 1, 1)
end
end

function mob30238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30238', math.random(1500, 3000), 1)
end

function mob30238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30238, 1, 'mob30238_Action')
RegisterUnitEvent(30238, 2, 'mob30238_Leave')
RegisterUnitEvent(30238, 3, 'mob30238_Kill')
RegisterUnitEvent(30238, 4, 'mob30238_Die')
